<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [60,1, 2, 3]
        var arr2 = [1, 2, 3]

        function has() {
           if(arguments[0].indexOf(arguments[1])>=0)
           return true
           else
           return false
        }

        console.log(has(arr, 60)) // true
        console.log(has(arr2, 60)) // false
    </script>
</body>
</html>